.form-approval-item{
  background-color: $white;
  padding: 10px 15px;
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  .form-approval-item-label{
    width: 120px;
    &.disabled{
      color: $fc2;
    }
    &.required{
      &:after{
        content: '*';
        color: $red;
      }
    }
  }
  .form-approval-item-content{
    font-size: 14px;
    min-height: 20px;
    line-height: 20px;
    text-align: right;
    flex: 1;
    textarea{
      min-height: 80px;
    }
    &.disabled{
      .form-approval-item-content-picker-value-list-item{
        color: $fc2;
      }
    }
    .form-approval-item-content-picker{
      width: 100%;
      .form-approval-item-content-picker-value{
        width: 100%;
        min-height: 30px;
        line-height: 30px;
      }
      .form-approval-item-content-picker-value-list{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
      }
      .form-approval-item-content-picker-value-list-item{
        &.multiple{
          padding: 0 8px;
          border-radius: 3px;
          background-color: $bg-gray;
        }
      }
      .form-approval-item-content-picker-value-placeholder{
        color: $placeholder;
      }
    }
    .form-approval-item-content-appendix-add{
      border: 1px dashed $theme;
      border-radius: 5px;
      line-height: 30px;
      text-align: center;
      color: $theme;
      margin-top: 15px;
      font-size: 14px;
      @include button;
    }
    .form-approval-item-content-appendix-box{
      position: relative;
      @include box-shadow(0px 0px 2px 1px rgba(0, 0, 0, .125));
      border-radius: 5px;
      overflow: hidden;
      margin-top: 15px;
      &.start{
        margin-top: 0;
      }
      .form-approval-item-content-appendix{
        width: 100%;
        height: 120px;
        background-color: $bg-gray;
        padding: 10px;
        box-sizing: border-box;
      }
      .form-approval-item-content-appendix-tip{
        width: 100%;
        color: $theme;
        text-align: center;
        line-height: 30px;
        height: 30px;
        font-size: 16px;
      }
      .form-approval-item-content-appendix-delete{
        position: absolute;
        font-family: iconfont;
        z-index: 10;
        color: red;
        font-size: 20px;
        top: 5px;
        right: 5px;
      }
    }
  }
  &.column {
    flex-direction: column;
    align-items: flex-start;
    .form-approval-item-label{
      width: auto;
      margin-bottom: 10px;
    }
    .form-approval-item-content{
      width: 100%;
      text-align: left;
    }
  }
}

.approval-select-wrapper{
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: $white;
  z-index: 1000;
  .approval-select-list{
    width: 100%;
    height: calc(100vh - 200upx);
    .approval-select-list-item{
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
      border-bottom: 1px solid $border;
      padding: 10px 15px;
      .approval-select-list-item-check{
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 35px;
      }
      .approval-select-list-item-avatar{
        width: 40px;
        height: 40px;
        border-radius: 5px;
        margin-right: 10px;
        overflow: hidden;
        img{
          width: 100%;
          height: 100%;
        }
      }
      .approval-select-list-item-text-wrapper{
        flex: 1;
        display: flex;
        flex-direction: column;
      }
      .approval-select-list-item-text{
        text-align: left;
        font-size: 14px;
        color: $fc1;
        &.sub{
          font-size: 12px;
          color: $fc3;
          margin-top: 3px;
        }
      }
    }
  }
  .approval-select-confirm{
    background-color: $white;
    height: 100upx;
    width: 100%;
    line-height: 100upx;
    font-size: 16px;
    color: $theme;
    text-align: center;
    z-index: 1000;
    border-top: 1upx solid $border;
  }
}

.form-approval-item-popup{
  width: 100%;
  height: 100%;
  background-color: $white;
}

.form-approval-item-popup-content{
  width: 100%;
  overflow: hidden;
}
.form-approval-item-popup-search-wrapper{
  width: 100%;
  height: 40px;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  padding: 5px 15px;
  border-bottom: 1px solid $border;
}
.form-approval-item-popup-search{
  height: 30px;
  width: 100%;
  background-color: $bg-input;
  border-radius: 15px;
  position: relative;
  padding-left: 30px;
  .form-approval-item-popup-search-icon{
    position: absolute;
    width: 30px;
    height: 30px;
    line-height: 30px;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .form-approval-item-popup-search-input{
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: left;
  }
}
.form-approval-item-pop-list{
  width: 100%;
  .form-approval-item-pop-list-item{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid $border;
    padding: 10px 15px;
    .form-approval-item-pop-list-item-check{
      display: flex;
      flex-direction: row;
      align-items: center;
      width: 40px;
    }
    .form-approval-item-pop-list-item-text-wrapper{
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }
    .form-approval-item-pop-list-item-text{
      text-align: left;
      font-size: 16px;
      color: $fc1;
      &.sub{
        font-size: 14px;
        color: $fc1;
        margin-top: 5px;
      }
    }
  }
}
.form-approval-item-popup-btn-wrapper{
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  height: 40px;
  border-bottom: 1px solid $border;
  box-sizing: border-box;
}
.form-approval-item-popup-btn{
  @include button;
  padding: 0;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: $theme;
  &:after{
    padding: 0;
    margin: 0;
  }
  &.cancel{
    color: $fc2;
  }
}

.approval-user-wrapper{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  padding-right: $space;
  .approval-user{
    position: relative;
    margin-top: 10px;
    width: 40px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    &.divider{
      width: 30px;
    }
    .approval-user-delete{
      position: absolute;
      top: -15px;
      right: -15px
    }
    .approval-user-avatar{
      width: 40px;
      height: 40px;
      border-radius: 5px;
      overflow: hidden;
      &.divider{
        width: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        img{
          width: 20px;
          height: 20px;
        }
      }
      img{
        width: 40px;
        height: 40px;
      }
    }
    .approval-user-name{
      width: 40px;
      height: 20px;
      line-height: 20px;
      font-size: 10px;
      overflow: hidden;
      color: $fc2;
      text-align: center;
      word-break: break-all;  /* break-all(允许在单词内换行。) */
      text-overflow: ellipsis;  /* 超出部分省略号 */
      display: -webkit-box; /** 对象作为伸缩盒子模型显示 **/
      -webkit-box-orient: vertical; /** 设置或检索伸缩盒对象的子元素的排列方式 **/
      -webkit-line-clamp: 1;
    }
  }
}

.approval-appendix-wrapper{
  @include row;
  justify-content: flex-start;
  .approval-appendix{
    position: relative;
    margin-top: 10px;
    width: 40px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    &.divider{
      width: 20px;
    }
    .approval-appendix-delete{
      position: absolute;
      top: -15px;
      right: -15px
    }
    .approval-appendix-avatar{
      width: 40px;
      height: 40px;
      border-radius: 5px;
      overflow: hidden;
      &.divider{
        width: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        img{
          width: 20px;
          height: 20px;
        }
      }
      img{
        width: 40px;
        height: 40px;
      }
    }
    .approval-appendix-name{
      width: 40px;
      height: 20px;
      line-height: 20px;
      font-size: 10px;
      overflow: hidden;
      color: $fc2;
      text-align: center;
      word-break: break-all;  /* break-all(允许在单词内换行。) */
      text-overflow: ellipsis;  /* 超出部分省略号 */
      display: -webkit-box; /** 对象作为伸缩盒子模型显示 **/
      -webkit-box-orient: vertical; /** 设置或检索伸缩盒对象的子元素的排列方式 **/
      -webkit-line-clamp: 1;
    }
  }
}